<?php
/**
 * Created by PhpStorm.
 * User: ahao
 * Email: 827316006@qq.com
 * Date: 2019/12/6 22:12
 */

Swoole\Runtime::enableCoroutine(true);

go(function () {
    $redis = new Redis();
    $redis->connect('0.0.0.0',6379);
    $redis->set('ahao_1','ahao-yes');
    print_r($redis->get('ahao_1'));
});